package edu.sctu.fengleilin.month06.day150602.RailWayStation;

import edu.sctu.xialei.May.day20150505one.People;

import java.util.List;

/**
 * Created by user09 on 2015/6/9.
 */
public class DtaUtil {

//    private String danger = "炸弹";
//    private SetTrainData setTrainData;
//    private SetPeopleData setPeopleData;
//
//    public DtaUtil(){
//        setTrainData = new SetTrainData();
//        setPeopleData = new SetPeopleData();
//    }
//
//    public void getPeople(){
//        List<PeopleAppbean> list = setPeopleData.SetPeopleData();
//        for (PeopleAppbean people:list){
//            if (people.isCard()){
//                String problem = checkBag(people);
//                System.out.println(problem);
//                if (problem.contains("炸弹")){
//                    kouprice(people);
//                }
//            }else {
//
//            }
//        }
//    }
//public String checkBag(PeopleAppbean people){
//    DangerDeth dangerDeth = new DangerDeth(people,is_danger);
//    if (dangerDeth.checkBag()){
//        return "扣留";
//    }else {
//        return checkWater(people);
//    }
//}
//public String checkWater(PeopleAppbean people){
//    DangerDeth dangerDeth = new DangerDeth(people,is_danger);
//    if (dangerDeth.checkWater()){
//        return "扣留";
//    }else {
//        ifPrice(people);
//        return "";
//    }
//}public void ifPrice(PeopleAppbean people){
//        if (people.getMoney() > 2){
//            System.out.printf("");
//        }else {
//            new CardDeth().setPrice(10,people);
//            System.out.println("");
//            ifPrice(people);
//        }
//    }
//    public void kouPrice(PeopleAppbean People){
//        CardDeth cardDeth = new CardDeth(setTrainData.setHashMapData());
//        if (people.getPice() >= cardDeth.getPrice(people.getStart(),people.getEnd())){
//            System.out.println(""+people.getPice() - cardDeth.getPrice(people.getStart(),people.getEnd()));
//        }else {
//            cardDeth.setPrice(10,people);
//            System.out.println("");
//            kouPrice(people);
//        }
//    }
}
